namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_OF_TACHE")]
    public partial class PUB_OF_TACHE
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PUB_OF_TACHE()
        {
            PUB_OF_DETAIL = new HashSet<PUB_OF_DETAIL>();
            PUB_OF_NODE = new HashSet<PUB_OF_NODE>();
        }

        [Key]
        [StringLength(40)]
        public string TACHE_ID { get; set; }

        [Required]
        [StringLength(20)]
        public string TACHE_NAME { get; set; }

        [StringLength(20)]
        public string TACHE_CODE { get; set; }

        public byte? TACHE_ORDERS { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PUB_OF_DETAIL> PUB_OF_DETAIL { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PUB_OF_NODE> PUB_OF_NODE { get; set; }
    }
}
